<template>
  <div class="home-header">
    <div class="header-left">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-shaixuan" />
      </svg>
    </div>
    <div class="header-center">
      <span>我的</span>
      <span class="active">发现</span>
      <span>云村</span>
      <span>视频</span>
    </div>
    <div class="header-right">
      <svg class="icon" aria-hidden="true" @click="$router.push('/search')">
        <use xlink:href="#icon-sousuo" />
      </svg>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style lang="less" scoped>
.home-header {
  display: flex;
  height: 1rem;
  justify-content: space-between;
  align-items: center;
  .icon {
    width: 0.5rem;
    height: 0.5rem;
  }
  .header-center {
    width: 5rem;
    display: flex;
    justify-content: space-around;
    font-size: 0.35rem;
    .active {
      font-weight: bold;
    }
  }
}
</style>